#include"yejing.h"
#define uchar unsigned char
#define uint unsigned int
uchar table[1];
void init1()
{
	TMOD=0x20;
	TH1=0XFD;
	TL1=0XFD;
	TR1=1;
	EA=1;
	SCON=0X50;
	ES=1;
}

void main()
{
	int prelength=0;
	init();
	init1();
	while(1)
	{
		TI=0;
		SBUF=0x50;
		while(!TI);
		prelength=table[0];
		shuru(prelength);
	}
}
void ser() interrupt 4
{
	uchar temp,k=0;
	ES=0;
	if(RI)
	{
		RI=0;
		temp=SBUF;
		table[k]=temp-45;
	}
	ES=1;
}